/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package AdminOperations;

import CRUD.GuestannounceHome;
import CRUD.MemberannounceHome;
import xmlMapping.Guestannounce;
import xmlMapping.Memberannounce;

/**
 *
 * @author ABDELMOHSEN
 */
public class AdminAnnouncements {
   public void announceToGuest(Guestannounce announce){
        GuestannounceHome gAnnHome=new GuestannounceHome();
        gAnnHome.persist(announce);
    }
    public void announceToMember(Memberannounce announce){
        MemberannounceHome mAnnHome=new MemberannounceHome();
        mAnnHome.persist(announce);
    }
    /*public static void main(String[] args){
        Guestannounce an=new Guestannounce("My Announcement","this is Announcement Body",new Date());
        new AdminAnnouncements().announceToGuest(an);
    }*/

}
